fix: #91 use exact Search button locator and clear E2E history #92
+14
−3
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Closes #91
What was done
search()helper ine2e/tests/search.spec.tsto usegetByRole('button', { name: 'Search', exact: true })so it no longer collides withClear recent searchesonce search history is recorded.exact: trueto theFiltersandFilters (1)button locators ine2e/tests/search.spec.tsto avoid potential substring matches withClear filters.E2E_USER_IDuser's recorded search history after returning to Discover in the journey test so repeated runs start with clean history.What was tested
pnpm format:check && pnpm lint && pnpm typecheck && pnpm test— passed (client: 20 test files / 202 tests passed; server: 8 unit test files / 81 tests passed, 5 PostgreSQL-backed files / 56 tests skipped locally withTEST_DATABASE_URLunset).pnpm test:e2erun twice consecutively against a throwaway local PostgreSQL cluster migrated and seeded withdb:seed, API server, and Vite dev server (E2E_BASE_URL=http://localhost:5179/project2/):7 passed (21.0s)7 passed (18.8s)